Strongly-Normalizing Higher-Order Relational Queries
نویسندگان
چکیده
Language-integrated query is a powerful programming construct allowing database queries and ordinary program code to interoperate seamlessly safely. techniques rely on classical results about the nested relational calculus, stating that its can be algorithmically translated SQL, as long their result type flat relation. Cooper others advocated higher-order calculi basis for language-integrated in functional languages such Links F#. However, translation of SQL relies rewrite system which no strong normalization proof has been published: previous attempt does not deal correctly with rules duplicate subterms. This paper fills gap literature, explaining difficulty attempt, showing how extend $\top\top$-lifting approach Lindley Stark accommodate duplicating rewrites. We also show recently-introduced calculus heterogeneous mixing set multiset semantics.
منابع مشابه
Higher-order queries and applications
Higher-order transformations are ubiquitous within data management. In relational databases, higher-order queries appear in numerous aspects including query rewriting and query specification. In XML databases, higher-order functions are natural due to the close connection of XML query languages with functional programming. The thesis investigates higher-order query languages that combine higher...
متن کاملShredding higher-order nested queries
We present a modular account of query shredding, the simulation of a single nested relational query by a number of flat relational queries, applicable to both set and multiset semantics. Our key insight is that shredding can be greatly simplified by first rewriting the input query into a canonical normal form. Normalisation allows us to define shredding translations on types and terms independe...
متن کاملStrongly Normalizing Audited Computation
Auditing is an increasingly important operation for computer programming, for example in security (e.g. to enable history-based access control) and to enable reproducibility and accountability (e.g. provenance in scientific programming). Most proposed auditing techniques are ad hoc or treat auditing as a second-class, extralinguistic operation; logical or semantic foundations for auditing are n...
متن کاملThe complexity of higher-order queries
Higher-order transformations are ubiquitous within data management. In relational databases, higher-order queries appear in numerous aspects including query rewriting and query specification. This work investigates languages that combine higher-order transformations with ordinary relational database query languages. We study the two most basic computational problems associated with these query ...
متن کاملAlloy*: A Higher-Order Relational Constraint Solver
The last decade has seen a dramatic growth in the use of constraint solvers as a computational mechanism, not only for analysis and synthesis of software, but also at runtime. Solvers are available for a variety of logics but are generally restricted to first-order formulas. Some tasks, however, most notably those involving synthesis, are inherently higher order; these are typically handled by ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
ژورنال
عنوان ژورنال: Logical Methods in Computer Science
سال: 2022
ISSN: ['1860-5974']
DOI: https://doi.org/10.46298/lmcs-18(3:23)2022